package com.eclub.emotion.rootstone.server.context;

import java.util.List;

import com.eclub.emotion.rootstone.server.entity.Out;


public class Response {
	
	private Object returnValue;

	private List<Out<?>> outParaList;
	
	private byte[] responseBuffer;
	
	public Response(String rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	
	public Response(int rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Integer rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(long rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Long rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(short rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Short rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(float rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Float rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(boolean rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Boolean rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(double rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Double rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	
	public Response(char rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Character rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(byte rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	public Response(Byte rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	
	public Response(Object rv, List<Out<?>> op) {
		setValue(rv, op);
	}
	
	
	
	public void setValue(Object rv, List<Out<?>> op) {
		this.setOutParaList(op);
		this.setReturnValue(rv);
	}

	public Object getReturnValue() {
		return returnValue;
	}

	public void setReturnValue(Object returnValue) {
		this.returnValue = returnValue;
	}

	public List<Out<?>> getOutParaList() {
		return outParaList;
	}

	public void setOutParaList(List<Out<?>> outParaList) {
		this.outParaList = outParaList;
	}

	public void setResponseBuffer(byte[] responseBuffer) {
		this.responseBuffer = responseBuffer;
	}

	public byte[] getResponseBuffer() {
		return responseBuffer;
	}
}